package com.service.business.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.merchant.controller.rep.CommodityPriceRep;
import com.service.business.merchant.controller.req.CommodityPriceAddReq;
import com.service.dao.model.MerchantCommodityPrice;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * 商家商品价格表
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-03-28 12:54:56
 */
public interface MerchantCommodityPriceService extends IService<MerchantCommodityPrice> {

    MerchantCommodityPrice getCommodityPrice(Integer commodityId, String language);

    Map<String, CommodityPriceRep> getCommodityPrice2Map(Integer commodityId);

    Map<String, BigDecimal> getCommodityPrice2CoinKeyMap(Integer commodityId);

    List<CommodityPriceRep> getCommodityPrice2List(Integer commodityId);

    void saveCommodityPrice(Integer commodityId, List<CommodityPriceAddReq> priceAddReqs);

    void updateCommodityPrice(Integer commodityId, List<CommodityPriceAddReq> priceAddReqs);

}

